home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / shllutil.lha / shellutils-1.8 / lib / Makefile.in < prev    next >
Makefile  |  1992-09-10  |  2KB  |  84 lines

  1. # Makefile for library files used by GNU shell utilities.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. srcdir = @srcdir@
  22. VPATH = @srcdir@
  23.  
  24. SOURCES = basename.c error.c stripslash.c xmalloc.c xstrdup.c xwrite.c \
  25. putenv.c getopt.c getopt1.c getugroups.c regex.c getdate.y \
  26. posixtm.y strftime.c gethostname.c getusershell.c mktime.c stime.c \
  27. strcspn.c strstr.c strtol.c strtoul.c strtod.c alloca.c
  28.  
  29. OBJECTS = basename.o error.o stripslash.o xmalloc.o xstrdup.o xwrite.o \
  30. putenv.o getopt.o getopt1.o getugroups.o regex.o getdate.o \
  31. posixtm.o strftime.o @LIBOBJS@ @ALLOCA@
  32.  
  33. DISTFILES = Makefile.in getopt.h regex.h $(SOURCES)
  34.  
  35. all: libshu.a
  36.  
  37. .c.o:
  38.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $<
  39.  
  40. install: all
  41.  
  42. uninstall:
  43.  
  44. TAGS: $(SOURCES)
  45.     etags $(SOURCES)
  46.  
  47. clean:
  48.     rm -f *.a *.o
  49.  
  50. mostlyclean: clean
  51.  
  52. distclean: clean
  53.     rm -f Makefile *.tab.c getdate.c *posixtm.c
  54.  
  55. realclean: distclean
  56.     rm -f TAGS
  57.  
  58. dist:
  59.     ln $(DISTFILES) ../`cat ../.fname`/lib
  60.  
  61. libshu.a: $(OBJECTS)
  62.     rm -f $@
  63.     $(AR) cr $@ $(OBJECTS)
  64.     -$(RANLIB) $@
  65.  
  66. getdate.c: getdate.y
  67.     @echo expect 9 shift/reduce conflicts
  68.     -bison -o getdate.c $(srcdir)/getdate.y || yacc $(srcdir)/getdate.y
  69.     test ! -f y.tab.c || mv y.tab.c getdate.c
  70.  
  71. # Make the rename atomic, in case sed is interrupted and later rerun.
  72. posixtm.c: posixtm.y
  73.     -bison -o posixtm.tab.c $(srcdir)/posixtm.y || yacc $(srcdir)/posixtm.y
  74.     test ! -f y.tab.c || mv y.tab.c posixtm.tab.c
  75.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  76.     mv tposixtm.c posixtm.c
  77.     rm -f posixtm.tab.c
  78.  
  79. getopt1.o: getopt.h
  80. regex.o: regex.h
  81.  
  82. # Prevent GNU make v3 from overflowing arg limit on SysV.
  83. .NOEXPORT:
  84.